package cn.zyq.ykb.beans.task.dto;

import cn.zyq.ykb.system.annotation.Excel;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;

import javax.persistence.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class MyTaskAuditDto {
    /**
     * 表记录创建时间
     */
    @Excel(name = "提交时间", dateFormat = "yyyy-MM-dd",sort = 1)
    @ApiModelProperty(hidden = true)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 任务ID
     */
    @Transient
    @ApiModelProperty("任务名称")
    @Excel(name = "任务名称",sort = 2)
    private String taskName;

    /**
     * 领取人ID
     */
    @Transient
    @ApiModelProperty("做单人员")
    @Excel(name = "做单人员" ,sort =3)
    private String nickName;

    @Transient
    @ApiModelProperty("做单人员手机号")
    @Excel(name = "做单人员手机号" ,sort =4)
    private String phone;

    @Transient
    @ApiModelProperty("资金账户")
    @Excel(name = "资金账户",sort = 5)
    private String aliAccount;



    @Transient
    @ApiModelProperty("价格")
    @Excel(name = "价格",sort = 6)
    private BigDecimal price;

    /**
     * 主键id，用于关联
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    @ApiModelProperty("主键id，用于关联")
    @Excel(name = "订单ID",sort = 7)
    private Integer myTaskAuditID;

    /**
     * ** 审核状态，0默认，1审核中，2审核通过，3拒绝
     *
     * @See AuditTypeEnum
     */
    @ApiModelProperty("审核状态，0默认，1审核中，2审核通过，3拒绝，4审核驳回）")
    @Excel(name = "订单状态",readConverterExp ="0=默认,1=审核中,2=审核通过,3=审核拒绝,4=审核驳回",sort = 8)
    private Integer audit;

    @Transient
    @ApiModelProperty("渠道")
    private String channel;

    /**
     * 审核信息
     */
    @Column(name = "`information`")
    @ApiModelProperty("审核信息")
    private String information;

}
